﻿using log4net;

namespace DMS.Business.Helpers
{
    public static class Logger
    {
        private const string LOGGER_NAME_DEFAULT = "DefaultLogger";
        private const string LOGGER_NAME_MAIL = "MailLogger";
        private const string LOGGER_NAME_SMS = "SmsLogger";
        private const string LOGGER_NAME_PAYMENT = "PaymentLogger";
        private const string LOGGER_NAME_SITEMAP = "SitemapLogger";
        private const string LOGGER_NAME_ECOMMERCEANLYTIC = "EcommerceAnlytic";
        private const string LOGGER_NAME_NOTIFY = "NotifyLogger";
        private const string LOGGER_NAME_EVOCHERSMS = "EVoucherSmsLogger";
        private const string LOGGER_EVOUCHER = "EvoucherLogger";
        private const string LOGGER_AFFILIATE = "AffiliateLogger";

        public static ILog DefaultLogger { get; set; }
        public static ILog MailLogger { get; set; }
        public static ILog SmsLogger { get; set; }
        public static ILog PaymentLogger { get; set; }
        public static ILog SitemapLogger { get; set; }
        public static ILog EcommerceAnlytic { get; set; }
        public static ILog NotifyLogger { get; set; }
        public static ILog EVoucherSms { get; set; }
        public static ILog EvoucherLogger { get; set; }
        public static ILog AffiliateLogger { get; set; }
        
        static Logger()
        {
            //log4net.Config.XmlConfigurator.Configure();
            DefaultLogger = LogManager.GetLogger(LOGGER_NAME_DEFAULT);
            MailLogger = LogManager.GetLogger(LOGGER_NAME_MAIL);
            SmsLogger = LogManager.GetLogger(LOGGER_NAME_SMS);
            PaymentLogger = LogManager.GetLogger(LOGGER_NAME_PAYMENT);
            SitemapLogger = LogManager.GetLogger(LOGGER_NAME_SITEMAP);
            EcommerceAnlytic = LogManager.GetLogger(LOGGER_NAME_ECOMMERCEANLYTIC);
            NotifyLogger = LogManager.GetLogger(LOGGER_NAME_NOTIFY);
            EVoucherSms = LogManager.GetLogger(LOGGER_NAME_EVOCHERSMS);
            EvoucherLogger = LogManager.GetLogger(LOGGER_EVOUCHER);
            AffiliateLogger = LogManager.GetLogger(LOGGER_AFFILIATE);
        }
    }

}